package com.mervin.patterns.builder.other;

/***************************************
 * @Auther: mervin
 * @Date: 2020-04-18 01:19
 * @Description:
 ***************************************/
public class Client {
    public static void main(String[] args) {
        Man.Builder builder = new Man.Builder();
        Man m1 = builder.setMobile("19999999999")
                .setName("大佬")
                .setSex("男")
                .buildConstract();
        System.out.println(m1);
        Man m2 = builder.setName("大佬二")
                .buildConstract();
        System.out.println(m2);
        System.out.println(m1 == m2);

    }
}
